package com.zbxx.container.websocket.config;

/*
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
*/

/**
 * security
 * @author 万仁杰
 * @date 2019/05/20
 */
//@Configuration
//@EnableWebSecurity
public class SecurityConfig /*extends WebSecurityConfigurerAdapter*/ {
/*
    @Override
    protected void configure(HttpSecurity http) throws Exception {

       http.formLogin().and()
               //认证请求
               .authorizeRequests()
               .antMatchers("/user/**").permitAll()
               //所有请求
               .anyRequest().authenticated()
               .and()
               //跨域和防止csrf攻击
               .cors().and().csrf();
    }*/
}
